const { connection } = require('../../../model/database')
module.exports = (req, res) => {
    var sql = `delete from class where id = ${req.body.id};`

    connection.query(sql, (error, reslut) => {
        if (error) {
            console.log('失败');
            res.status(400).send({
                message: '成功',
            })  
            return
        }
        res.status(200).send({
            message: '成功',
        })
    })
}